package order

// OrderProfitSharing 订单分账表
type OrderProfitSharing struct {
	global.BaseModel
	OrderNo string `json:"orderNo" gorm:"column=order_no;comment:订单号（商户）"`

	MerId int32 `json:"merId" gorm:"column=mer_id;comment:商户ID"`

	OrderPrice big.Float `json:"orderPrice" gorm:"column=order_price;comment:订单付款金额"`

	IntegralNum int32 `json:"integralNum" gorm:"column=integral_num;comment:消耗积分数量"`

	IntegralPrice big.Float `json:"integralPrice" gorm:"column=integral_price;comment:订单积分抵扣金额"`

	ProfitSharingPlatPrice big.Float `json:"profitSharingPlatPrice" gorm:"column=profit_sharing_plat_price;comment:平台分账金额"`

	ProfitSharingMerPrice big.Float `json:"profitSharingMerPrice" gorm:"column=profit_sharing_mer_price;comment:商户分账金额"`

	FirstBrokerageFee big.Float `json:"firstBrokerageFee" gorm:"column=first_brokerage_fee;comment:一级返佣金额"`

	SecondBrokerageFee big.Float `json:"secondBrokerageFee" gorm:"column=second_brokerage_fee;comment:二级返佣金额"`

	ProfitSharingRefund big.Float `json:"profitSharingRefund" gorm:"column=profit_sharing_refund;comment:退款金额"`

	RefundUseIntegral int32 `json:"refundUseIntegral" gorm:"column=refund_use_integral;comment:退还使用积分"`

	RefundIntegralPrice big.Float `json:"refundIntegralPrice" gorm:"column=refund_integral_price;comment:退款积分抵扣金额"`

	PlatCouponPrice big.Float `json:"platCouponPrice" gorm:"column=plat_coupon_price;comment:平台优惠券金额"`

	RefundPlatCouponPrice big.Float `json:"refundPlatCouponPrice" gorm:"column=refund_plat_coupon_price;comment:退还平台优惠券补贴金额"`

	RefundProfitSharingPlatPrice big.Float `json:"refundProfitSharingPlatPrice" gorm:"column=refund_profit_sharing_plat_price;comment:退还平台分账金额"`

	RefundProfitSharingMerPrice big.Float `json:"refundProfitSharingMerPrice" gorm:"column=refund_profit_sharing_mer_price;comment:退还商户分账金额"`

	RefundFirstBrokerageFee big.Float `json:"refundFirstBrokerageFee" gorm:"column=refund_first_brokerage_fee;comment:退还一级返佣金额"`

	RefundSecondBrokerageFee big.Float `json:"refundSecondBrokerageFee" gorm:"column=refund_second_brokerage_fee;comment:退还二级返佣金额"`

	FreightFee big.Float `json:"freightFee" gorm:"column=freight_fee;comment:运费金额"`

	RefundFreightFee big.Float `json:"refundFreightFee" gorm:"column=refund_freight_fee;comment:退还运费金额"`
}
